<script type="text/javascript" charset="utf-8">

	$(document).ready(function(){ldelim} 
			$('#section_body__').wysiwyg();
	{rdelim});

</script>


<form id="edit_section" name="edit_section" action="{$smarty.const.HTTP_URL}form,Panel_Panel,saveedisec,{$section.id_page},{$section.id_section},{$section.id_lang}.html" method="post">
<input type="hidden" name="id_page" value="{$section.id_page}"/>
<input type="hidden" name="id_section" value="{$section.id_section}"/>
<input type="hidden" name="id_lang" value="{$section.id_lang}"/>
		
<table class="setup">
	<tr>
	<th>Nazwa strony</th><td>{$section.page_name}</td>
	</tr>
	<tr>
	<th>Treść wyswietlana zawsze</th><td><textarea class="htmledytor" name="section_body" id="section_body__" rows="35" cols="30" style="height: 450px;">{$section.section_body}</textarea></td>
	</tr>
	<tr>
	<th>Treść znikająca po zalogowaniu użytkownika</th><td><textarea class="htmledytor" name="section_body_sometime" id="section_body_sometime__" rows="35" cols="30" style="height: 250px;">{$section.section_body_sometime}</textarea></td>
	</tr>	
	<tr>
	<th>Treść dostępna dla użytkownika tylko po zalogowaniu</th><td><textarea class="htmledytor" name="section_body_hidden" id="section_body_hidden__" rows="35" cols="30" style="height: 250px;">{$section.section_body_hidden}</textarea></td>
	</tr>
	<tr>
	<th>Zablokowana</th><td><input type="checkbox" name="plock" {if $section.plock eq 1} value="1" checked="checked"{/if} onclick="if(this.checked){ldelim} this.value = 1 {rdelim}else{ldelim}this.value = 0{rdelim}"/></td>
	</tr>
	<tr>
	<th>Ostatnia modyfikacja</th><td>{$section.last_modification}</td>
	</tr>
	
	<tr>
		<th class="no_border"></th>
		<td class="no_border">
			<input type="submit" class="button" value="Zapisz sekcje"/>
			<input type="button" class="button" value="Zrezygnuj" onclick="document.location='{$smarty.const.HTTP_URL}edytuj_strone,,,{$section.id_page},{$section.id_lang}.html'"/>
			<input type="button" class="button" value="Usuń sekcje" onclick="document.location='{$smarty.const.HTTP_URL}edytuj_strone,Panel_Panel,delsec,{$section.id_page},{$section.id_section},{$section.id_lang}.html'"/>
			<input type="button" class="button" id="podglad_strony" value="Podgląd strony" onclick="document.location='{if $section.redirect eq 1}{$section.to_url}.html{else}{$smarty.const.HTTP_URL}{$section.page_url}.html{/if}';">
		</td>
	</tr>
	<tr>
		<th class="red">Zainstaluj w sekcji: </th>		
		<th><select name="exten_body" style="width: 350px;">
				{html_options options=$smarty.const.EXTEN|unserial selected=$section.id_exten}
			</select>
		</th>
	</tr>	

</table>
</form>
